﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TA.DotNetUtils;
using System.Web.UI.HtmlControls;
using System.Web.UI;
using TA.Turbo.Controls;

namespace TA.Turbo.Design
{
	/// <summary>
	/// Provides a way to get a list of control IDs on a page.
	/// </summary>
	public class ControlIdLister : BaseControlIdLister
	{
		/// <summary>
		/// Determines and returns a flag which indicates whether the specified control should be included in the result.
		/// </summary>
		/// <param name="c"></param>
		/// <returns></returns>
		protected override bool ControlMatches(Control c)
		{
			return
				!(c is IControlReference) &&
				!(c is BaseSpecialControl) &&
				!(c is HtmlForm);
		}
	}
}
